package com.bdqn.t382.mapper.supplier;

import com.bdqn.t382.entity.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface SupplierMapper {
    //新增
    public int addSupplier(Supplier supplier);

    //修改
    public int updateSupplier(Supplier supplier);

    //删除
    public int deleteSupplier(Integer id);

    public List<Supplier> getSupplierSupName(@Param("supName") String supName,
                                             @Param("supCode") String supCode,
                                             @Param("supContact") String supContact,
                                             @Param("supName") Date createdTime);

    /**
     * 查询入库记录表，包括供货商名称
     *
     * @Param SysUser
     */
    public List<Supplier> getStorageRecordListWithSupName(@Param("supName") String supName,
                                                          @Param("supCode") String supCode,
                                                          @Param("id") Integer id);

    public List<Supplier> selectPageList(@Param("supName") String supName,
                                         @Param("id") Integer id,
                                         @Param("pageBegin") Integer PageBegin,
                                         @Param("pageSize") Integer pageBegin);
}
